package com.dxp.operation.exception;

public enum ErrEnum {

    /**
     * 错误信息枚举类
     * <p>
     * code:  错误码
     * msg:   错误信息说明
     */
    PARAM_ERR(1400, "请求参数异常"),
    NOT_FIND_RESOURCE(1401, "未找到资源"),
    REMOTE_EXCEPTION(1402, "远程调用失败"),
    INVITE_ERR(1403, "拉流失败"),
    INVITE_ACK_ERR(1404, "确认拉流失败"),
    INVITE_BYE_ERR(1405, "确认拉流失败"),
    MISS_PARAMETER_ERR(1406, "缺失必填字段"),
    HTTP_METHOD_ERR(1407, "请求类型不支持"),
    SERVER_ERR(1500, "未知异常");

    private int code;
    private String msg;

    public int code() {
        return code;
    }

    public String msg() {
        return msg;
    }

    ErrEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}